home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: VC++ v.4.0 conversion problems
- Date: 20 Jan 1996 12:12:44 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4dqm7s$1j9@news1.usa.pipeline.com>
- References: <4dpcvt$5gs@news.halcyon.com>
- NNTP-Posting-Host: pipe7.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Jan 20, 1996 00:29:08 in article <Re: VC++ v.4.0 conversion problems>,
- 'normanb@halcyon.com (Norm Bryar)' wrote:
-
-
- >morb@novo.dk (Morten Brun) wrote:
- >
- >>I am having a lot of problems when compiling under v.4. as I am etting
- >
- >>a lot of conversions errors due to the new behavior of v.4 like:
- >>
- >>LPWSTR lpszName;
- >
- >>GetPrivateProfileStringA("x", "y", "",lpszName, sizeof(lpszName),
- >>\\xxx.INI");
- >
- This does not solve your compile problems but will surely cause
- headaches at run time. lpszName (here's where HN comes
- in semi-handy :-)) is a pointer. The sizeof(lpszName) evaluates
- to the size of the pointer; i.e., 4 bytes. I doubt that's what
- you intended.
-
- --
- Pete Grant
- Kalevi, Inc.
- Object Oriented Software Development
-